using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;
using System.Data;
using System.Data.SqlClient;
namespace BUS
{
    class PhongBUS
    {
        DAO.PhongDAO pDAO = new PhongDAO();
        public bool InsertPhong(PhongDTO pDTO)
        {
            return pDAO.InsertPhong(pDTO);
        }
        public  DataTable getListPhong()
        {
            return pDAO.getListPhong();
        }
        public  DataTable searchPhongById(string MaPhong)
        {
            return pDAO.searchPhongById(MaPhong);
        }
        public DataTable searchPhongByKind(string MaLoaiphong)
        {
            return pDAO.searchPhongByKind(MaLoaiphong);
        }
        public DataTable searchPhongByStatus(int TinhTrang)
        {
            return pDAO.searchPhongByStatus(TinhTrang);
        }
        public DataTable searchPhongByTuaLuaHotDua(string kind, int status)
        {
            return pDAO.searchPhongByTuaLuaHotDua(kind,status);
        }
        public int testExist(string MaPhong)
        {
            return pDAO.testExist(MaPhong);
        }
        public bool Delete(string MaPhong)
        {
            return pDAO.Delete(MaPhong);
        }
    }
}
